import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SSpringInteractCount
    
    export  class SSpringInteractCount extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SSpringInteractCount();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.rubback);
            arg1.writeInt(this.rubdown);
            arg1.writeInt(this.soap);
            arg1.writeBool(this.enterSpring);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.rubback = arg1.readInt();
            this.rubdown = arg1.readInt();
            this.soap = arg1.readInt();
            this.enterSpring = arg1.readBool();
            return;
        }

        public /* const */_type: int=12081;

        public /* var */rubback: int;

        public /* var */rubdown: int;

        public /* var */soap: int;

        public /* var */enterSpring: Boolean;

        public static /* var */_regist: SSpringInteractCount;
    }

            SSpringInteractCount._regist = new SSpringInteractCount(true);
        